<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
    <div class="list-search-title-box">
        <form class="layui-form" style="box-shadow: 0 0 20px #eee;padding-right: 15px;">
            <section class="jxc-section" style="display: flex;align-items: flex-start;white-space: nowrap;">
                <div class="card layui-row" style="flex: 1">
                    <div class="layui-form-item ">
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">车牌号/车架号:</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input searchVal" v-model="q.carPlateNo"  placeholder="请输入车牌号/车架号"/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">车辆归属:</label>
                            <div class="layui-input-inline">
                                <input v-model="q.belongFactory" type="text"   style="cursor:pointer;"   @click="deptTree" readonly="readonly"
                                       class="layui-input searchVal"
                                       placeholder="请选择车辆归属" />
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                            <label class="layui-form-label">品牌/车系/车型:</label>
                            <div class="layui-input-inline">
                                <!-- <select  v-model="q.carBrandModelName"   lay-filter="carModelSelect" class="layui-select" >
                                     <option value="">请选择品牌/车系/车型</option>
                                     <option v-for="item in allCarModels" :value="item.id">{{item.brandAndModel}}</option>
                                 </select>-->

                                <input type="text" id="a"  class="layui-input" placeholder="请选择品牌/车系/车型" readonly="readonly"/>
                            </div>
                        </div>

                        <section v-show="isFilter">
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆状态:</label>
                                <div class="layui-input-inline">
                                    <select  name="carStatus"  v-model="q.carStatus" class="layui-select"   lay-filter="carStatusSelect">
                                        <!-- 车辆状态(当前状态 1整备中，2备发车，3 预定中  4.用车中 5.已过户)-->
                                        <option value="">请选择车辆状态</option>
                                        <option value="1">整备中</option>
                                        <option value="2">备发车</option>
                                        <option value="3">预定中</option>
                                        <option value="4">用车中</option>
                                        <option value="5">已过户</option>
                                        <option value="6">已处置</option>
                                        <option value="7">已出售</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">客户名称:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.customer"  placeholder="请输入客户名称"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆订单号:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.orderNo"  placeholder="请输入车辆订单号"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆所在仓库:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.carDepotName"
                                           @click="chooseWarehouse"   placeholder="请选择车辆所在仓库" readonly/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">车辆所有人:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input searchVal" v-model="q.carOwner" placeholder="请输入车辆所有人"/>
                                </div>
                            </div>
                            <div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">保养时效:</label>
                                <div class="layui-input-inline">
                                    <select  name="brandId"  v-model="q.maintenanceStatus" class="layui-select"  lay-filter="maintenanceStatusSelect" >
                                        <option value="">全部</option>
                                        <option value="1">有效</option>
                                        <option value="0">失效</option>
                                    </select>
                                </div>
                            </div>
                            <!--<div class="layui-inline layui-col-md4 layui-col-sm6 layui-col-xs12">
                                <label class="layui-form-label">服务站:</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input" id="serviceSite"  v-model="q.serviceSite"  placeholder="服务站名称">
                                </div>
                            </div>-->
                            <div class=" flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">本次保养时间:</label>
                                <div class="list-search-sup-title new-layui-title">
                                    <div class="task-content-box-tab">
                                        <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12" type="currentMaintenanceDate">
                                            <div value="0" class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                            <div value="1" class="layui-col-md2 layui-col-sm2 layui-col-xs2">今日</div>
                                            <div value="2" class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                            <div value="3" class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                            <div value="4" class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                            <div value="5" class="layui-col-md2 layui-col-sm2 layui-col-xs2" >本月</div>
                                            <div value="6" class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                            <div value="7" class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                        </div>
                                        <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                            <input type="text" class="layui-input" id="searchMaintenanceDate" v-model="q.searchMaintenanceDate" readonly placeholder="选择日期范围" style="width: 300px;" autocomplete="off">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class=" flex-box layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                                <label class="layui-form-label">下次保养时间:</label>
                                <div class="list-search-sup-title new-layui-title">
                                    <div class="task-content-box-tab">
                                        <div class="display task-content-box-tab layui-col-md8 layui-col-sm8 layui-col-xs12" type="nextMaintenanceDate">
                                            <div value="0" class="layui-col-md2 layui-col-sm2 layui-col-xs2">昨天</div>
                                            <div value="1" class="layui-col-md2 layui-col-sm2 layui-col-xs2">今日</div>
                                            <div value="2" class="layui-col-md2 layui-col-sm2 layui-col-xs2">上周</div>
                                            <div value="3" class="layui-col-md2 layui-col-sm2 layui-col-xs2">本周</div>
                                            <div value="4" class="layui-col-md2 layui-col-sm2 layui-col-xs2">上月</div>
                                            <div value="5" class="layui-col-md2 layui-col-sm2 layui-col-xs2">本月</div>
                                            <div value="6" class="layui-col-md2 layui-col-sm2 layui-col-xs2">本季</div>
                                            <div value="7" class="layui-col-md2 layui-col-sm2 layui-col-xs2">本年</div>
                                        </div>
                                        <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
                                            <input type="text" class="layui-input" id="searchNextMaintenanceDate" v-model="q.searchNextMaintenanceDate"  readonly placeholder="选择日期范围" style="width: 300px;" autocomplete="off">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </section>
                    </div>
                </div>
                <div style="display: flex;align-items: center;">
                    <a class="layui-btn search-btn" @click="query">查询</a>
                    <a class="layui-btn reset-btn" @click="reset">重置</a>
                    <div @click="bindFilter" style="margin-left: 10px;cursor: pointer;user-select: none;">
                        <span style="color: #2251C5;">高级筛选</span>
                        <img src="../../../statics/images/高级筛选@2x.png" style="width:14px">
                    </div>
                </div>
            </section>
        </form>
    </div>
    <div class="list-search-title-box">
        <form class="layui-form">
            <div style="display:flex;width: 100%;">
                <div class="layui-form-item layui-row" style="width: 100%;">
                    <div class="list-search-form-button" style="width: 100%;">
                        <a class="layui-btn search-btn" @click="exports" v-m-perm="['maintenance:maintenancemanage:export']">导出</a>
                        <a class="layui-btn reset-btn" @click="add" v-m-perm="['maintenance:maintenancemanage:save']">创建保养单</a>
                    </div>
                </div>
            </div>
        </form>
    </div>

    <div class="layui-tab-item layui-show">
        <table class="layui-hide" id="grid" lay-filter="grid" lay-data="{height: 'full'}"></table>
    </div>

    <!-- 表单 -->
    <form v-show="showForm" class="layui-form ren-form" id="editForm">
        <div class="layui-form-item">
            <label class="layui-form-label">保养编号</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.maintenanceNumber" autocomplete="off" placeholder="保养编号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆编号</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.carId" autocomplete="off" placeholder="车辆编号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车牌号</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.carPlateNo" autocomplete="off" placeholder="车牌号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">品牌ID</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.brandId" autocomplete="off" placeholder="品牌ID" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">品牌名称</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.brandName" autocomplete="off" placeholder="品牌名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车型id</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.modelId" autocomplete="off" placeholder="车型id" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车型名称</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.modelName" autocomplete="off" placeholder="车型名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车架号</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.vinNo" autocomplete="off" placeholder="车架号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">客户名称</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.customer" autocomplete="off" placeholder="客户名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆状态</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.carStatus" autocomplete="off" placeholder="车辆状态" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆订单号</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.orderNo" autocomplete="off" placeholder="车辆订单号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆所属公司id</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.belongFactoryId" autocomplete="off" placeholder="车辆所属公司id" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆所属公司</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.belongFactory" autocomplete="off" placeholder="车辆所属公司" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">租赁开始时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.rentStartDate" autocomplete="off" placeholder="租赁开始时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">租赁结束时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.rentEndDate" autocomplete="off" placeholder="租赁结束时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆所在城市id</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.belongCityId" autocomplete="off" placeholder="车辆所在城市id" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆所在城市</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.belongCity" autocomplete="off" placeholder="车辆所在城市" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车辆用途</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.carApplication" autocomplete="off" placeholder="车辆用途" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">服务站名称</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.serviceSite" autocomplete="off" placeholder="服务站名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">当前公里数</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.currentMile" autocomplete="off" placeholder="当前公里数" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">下次保养公里数</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.nextMile" autocomplete="off" placeholder="下次保养公里数" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">下次保养时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.nextDate" autocomplete="off" placeholder="下次保养时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保养类型</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.maintenanceType" autocomplete="off" placeholder="保养类型" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保养备注</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.maintenanceRemark" autocomplete="off" placeholder="保养备注" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保养时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.maintenanceDate" autocomplete="off" placeholder="保养时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保养合计费用</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.maintenanceFee" autocomplete="off" placeholder="保养合计费用" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">记录人</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.operator" autocomplete="off" placeholder="记录人" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">创建时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.timeCreate" autocomplete="off" placeholder="创建时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">更新时间</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.timeUpdate" autocomplete="off" placeholder="更新时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否删除；0、未删除 1、已删除</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" v-model="maintenanceManage.deleted" autocomplete="off" placeholder="是否删除；0、未删除 1、已删除" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="saveOrUpdate">确定</button>
            </div>
        </div>
    </form>
</div>

<!--操作-->
<script type="text/html" id="barTpl">
    <a class="layui-grid-btn-xs" lay-event="edit" v-m-perm="['maintenance:maintenancemanage:update']" more-btn-index="{{d.LAY_INDEX-1}}">编辑</a>
    {{#if( d.isDataRenewal === 1){}}
    <a class="layui-grid-btn-xs" lay-event="renewal" v-m-perm="['maintenance:maintenancemanage:renewal']" more-btn-index="{{d.LAY_INDEX-1}}">续保</a>
    {{#}}}
    <a class="layui-grid-btn-xs" lay-event="view" v-m-perm="['maintenance:maintenancemanage:info']" more-btn-index="{{d.LAY_INDEX-1}}">查看</a>
</script>

<script src="../../statics/js/modules/maintenance/maintenancemanage.js?_${.now?long}"></script>
</body>
</html>
